package com.chenhao.spingcloud.chenhaoeurekauser.service;


import com.chenhao.spingcloud.chenhaoeurekauser.model.Product;
import com.chenhao.spingcloud.chenhaoeurekauser.pojo.User;

import java.util.Map;

/**
 *
 * @return
 * @author chenhao
 *
 * @date 2020/4/9 17:44
 */
public interface UserService {


    User getUser(Long id);

    Object listAll(int page, int size);

    int insert(Product user);

    int remove(Integer userId);

    int update(Product user);

    Map <String,String> optimisticLock(int userid, int id);

    Map<String,String> pessimismLock(int userid, int id);

}
